#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include <QTextEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "microgridsystem.h"

class MainWindow : public QMainWindow {
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void onAddDiesel();
    void onAddPV();
    void onRunSimulation();

private:
    // 手动创建控件
    QPushButton *m_btnAddDiesel;
    QPushButton *m_btnAddPV;
    QPushButton *m_btnRunSimulation;
    QTextEdit *m_textOutput;

    MicrogridSystem m_microgridSystem;
};

#endif // MAINWINDOW_H
